//基础数据
import Layout from '@/layout'
export default {
    path: '/basicData',
    component: Layout,
    redirect: '/basicData/productDefinition',
    children: [{
        path: '/basicData/productDefinition',
        component: () => import('@/view/basicData/productDefinition'),
        meta: {
            title: '默通工单',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '产品定义',
                    to: '/basicData/productDefinition'
                },
            ],
            permCode: "product.def"
        }
    }, {
        path: '/basicData/unit',
        component: () => import('@/view/basicData/unit'),
        meta: {
            title: '默通工单',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '单位',
                    to: '/basicData/unit'
                },
            ],
            permCode: "unit.def"
        }
    }, {
        path: '/basicData/irregular',
        component: () => import('@/view/basicData/irregular'),
        meta: {
            title: '默通工单',
            breadList: [{
                    name: '础基数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '不良品项',
                    to: '/basicData/irregular'
                },
            ],
            permCode: "defect.def"
        }
    }, {
        path: '/basicData/irregular/loadLog',
        component: () => import('@/view/basicData/irregular/loadLog'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/irregular',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '不良品项',
                    to: '/basicData/irregular'
                },
                {
                    name: '导入日志',
                    to: '/basicData/irregular/loadLog'
                },
            ],
            permCode: "irregular.loadLog"
        }
    }, {
        path: '/basicData/irregular/logDetail',
        component: () => import('@/view/basicData/irregular/logDetail'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/irregular',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '不良品项',
                    to: '/basicData/irregular'
                },
                {
                    name: '导入日志',
                    to: '/basicData/irregular/loadLog'
                },
                {
                    name: '导入日志详情',
                    to: '/basicData/irregular/logDetail'
                },
            ],
            permCode: "irregular.logDetail"
        }
    }, {
        path: '/basicData/procedure',
        component: () => import('@/view/basicData/procedure'),
        meta: {
            title: '默通工单',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工序',
                    to: '/basicData/procedure'
                },
            ],
            permCode: "process.def"
        }
    }, {
        path: '/basicData/createProcedure',
        component: () => import('@/view/basicData/procedure/createProcedure'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/procedure',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工序',
                    to: '/basicData/procedure'
                },
                {
                    name: '创建工序',
                    to: '/basicData/createProcedure'
                },
            ],
            permCode: "procedure.create"
        }
    }, {
        path: '/basicData/procedure/loadLog',
        component: () => import('@/view/basicData/procedure/loadLog'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/procedure',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工序',
                    to: '/basicData/procedure'
                },
                {
                    name: '导入日志',
                    to: '/basicData/procedure/loadLog'
                },
            ],
            permCode: "procedure.loadLog"
        }
    }, {
        path: '/basicData/procedure/logDetail',
        component: () => import('@/view/basicData/procedure/logDetail'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/procedure',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工序',
                    to: '/basicData/procedure'
                },
                {
                    name: '导入日志',
                    to: '/basicData/procedure/loadLog'
                },
                {
                    name: '导入日志详情',
                    to: '/basicData/procedure/logDetail'
                },
            ],
            permCode: "procedure.logDetail"
        }
    }, {
        path: '/basicData/procedure/SOPTemplate',
        component: () => import('@/view/basicData/procedure/SOPTemplate'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/procedure',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工序',
                    to: '/basicData/procedure'
                },
                {
                    name: 'SOP模板',
                    to: '/basicData/procedure/SOPTemplate'
                },
            ],
            permCode: "procedure.SOPTemplate"
        }
    }, {
        path: '/basicData/procedure/SOPTemplateDefault',
        component: () => import('@/view/basicData/procedure/SOPTemplateDefault'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/procedure',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工序',
                    to: '/basicData/procedure'
                },
                {
                    name: '默认SOP模板',
                    to: '/basicData/procedure/SOPTemplateDefault'
                },
            ],
            permCode: "procedure.SOPTemplateDefault"
        }
    }, {
        path: '/basicData/bom',
        component: () => import('@/view/basicData/bom'),
        meta: {
            title: '默通工单',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工艺路线',
                    to: '/basicData/bom'
                },
            ],
            permCode: "process.routing.def"
        }
    }, {
        path: '/basicData/bom/loadLog',
        component: () => import('@/view/basicData/bom/loadLog'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/bom',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工艺路线',
                    to: '/basicData/bom'
                },
                {
                    name: '导入日志',
                    to: '/basicData/bom/loadLog'
                },
            ],
            permCode: "bom.loadLog"
        }
    }, {
        path: '/basicData/bom/logDetail',
        component: () => import('@/view/basicData/bom/logDetail'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/bom',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工艺路线',
                    to: '/basicData/bom'
                },
                {
                    name: '导入日志',
                    to: '/basicData/bom/loadLog'
                },
                {
                    name: '导入日志详情',
                    to: '/basicData/bom/logDetail'
                },
            ],
            permCode: "bom.logDetail"
        }
    }, {
        path: '/basicData/bom/detail',
        component: () => import('@/view/basicData/bom/detail'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/bom',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工艺路线',
                    to: '/basicData/bom'
                },
                {
                    name: '工艺路线详情',
                    to: '/basicData/bom/detail'
                },
            ],
            permCode: "bom.detail"
        }
    }, {
        path: '/basicData/bom/createWorkmanship',
        component: () => import('@/view/basicData/bom/createWorkmanship'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/bom',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '工艺路线',
                    to: '/basicData/bom'
                },
                {
                    name: '创建工艺路线',
                    to: '/basicData/bom/createWorkmanship'
                },
            ],
            permCode: "bom.create"
        }
    }, {
        path: '/basicData/meritPay',
        component: () => import('@/view/basicData/meritPay'),
        meta: {
            title: '默通工单',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '绩效工资配置',
                    to: '/basicData/meritPay'
                },
            ],
            permCode: "salary.config.def"
        }
    }, {
        path: '/basicData/meritPay/loadLog',
        component: () => import('@/view/basicData/meritPay/loadLog'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/meritPay',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '绩效工资配置',
                    to: '/basicData/meritPay'
                },
                {
                    name: '导入日志',
                    to: '/basicData/meritPay/loadLog'
                },
            ],
            permCode: "meritPay.loadLog"
        }
    }, {
        path: '/basicData/meritPay/logDetail',
        component: () => import('@/view/basicData/meritPay/logDetail'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/meritPay',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '绩效工资配置',
                    to: '/basicData/meritPay'
                },
                {
                    name: '导入日志',
                    to: '/basicData/meritPay/loadLog'
                },
                {
                    name: '导入日志详情',
                    to: '/basicData/meritPay/logDetail'
                },
            ],
            permCode: "meritPay.logDetail"
        }
    }, {
        path: '/basicData/meritPay/matchingRules',
        component: () => import('@/view/basicData/meritPay/matchingRules'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/meritPay',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '绩效工资配置',
                    to: '/basicData/meritPay'
                },
                {
                    name: '绩效工资匹配规则',
                    to: '/basicData/meritPay/matchingRules'
                },
            ],
            permCode: "meritPay.meritPayRules"
        }
    }, {
        path: '/basicData/meritPay/createMeritPayRules',
        component: () => import('@/view/basicData/meritPay/createMeritPayRules'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/meritPay',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '绩效工资配置',
                    to: '/basicData/meritPay'
                },
                {
                    name: '新增绩效工资配置',
                    to: '/basicData/meritPay/createMeritPayRules'
                },
            ],
            permCode: "meritPay.create"
        }
    }, {
        path: '/basicData/meritPay/createMeritPayRules/edit',
        component: () => import('@/view/basicData/meritPay/createMeritPayRules/edit'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/meritPay',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '绩效工资配置',
                    to: '/basicData/meritPay'
                },
                {
                    name: '编辑绩效工资配置',
                    to: '/basicData/meritPay/createMeritPayRules/edit'
                },
            ],
            permCode: "meritPay.create"
        }
    }, {
        path: '/basicData/productDefinition/loadLog',
        component: () => import('@/view/basicData/productDefinition/loadLog'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/productDefinition',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '产品定义',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '导入日志',
                    to: '/basicData/productDefinition/loadLog'
                },
            ],
            permCode: "productDefinition.loadLog"
        }
    }, {
        path: '/basicData/productDefinition/logDetail',
        component: () => import('@/view/basicData/productDefinition/logDetail'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/productDefinition',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '产品定义',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '导入日志',
                    to: '/basicData/productDefinition/loadLog'
                },
                {
                    name: '导入日志详情',
                    to: '/basicData/productDefinition/logDetail'
                }
            ],
            permCode: "productDefinition.logDetail"
        }
    }, {
        path: '/basicData/createOrder',
        component: () => import('@/view/basicData/productDefinition/createProduction'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/productDefinition',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '产品定义',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '创建产品',
                    to: '/basicData/createOrder'
                },
            ],
            permCode: "productDefinition.create"
        }
    },{
        path: '/basicData/materials',
        component: () => import('@/view/basicData/materials'),
        meta: {
            title: '默通工单',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '物料清单',
                    to: '/basicData/materials'
                }
            ],
            permCode: "productDefinition.materials"
        }
    },{
        path: '/basicData/materials/create',
        component: () => import('@/view/basicData/materials/create'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/materials',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '物料清单',
                    to: '/basicData/materials'
                },
                {
                    name: '创建物料清单',
                    to: '/basicData/materials/create'
                }
            ],
            permCode: "productDefinition.materials.create"
        }
    },{
        path: '/basicData/materials/edit',
        component: () => import('@/view/basicData/materials/edit'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/materials',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '物料清单',
                    to: '/basicData/materials'
                },
                {
                    name: '编辑物料清单',
                    to: '/basicData/materials/edit'
                }
            ],
            permCode: "productDefinition.materials.edit"
        }
    },{
        path: '/basicData/materials/loadLog',
        component: () => import('@/view/basicData/materials/loadLog'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/materials',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '物料清单',
                    to: '/basicData/materials'
                },
                {
                    name: '导入日志',
                    to: '/basicData/materials/loadLog'
                }
            ],
            permCode: "productDefinition.materials.loadLog"
        }
    },{
        path: '/basicData/materials/logDetail',
        component: () => import('@/view/basicData/materials/logDetail'),
        meta: {
            title: '默通工单',
            activePath: '/basicData/materials',
            breadList: [{
                    name: '基础数据',
                    to: '/basicData/productDefinition'
                },
                {
                    name: '物料清单',
                    to: '/basicData/materials'
                },
                {
                    name: '导入日志',
                    to: '/basicData/materials/loadLog'
                },
                {
                    name: '导入日志详情',
                    to: '/basicData/materials/logDetail'
                }
            ],
            permCode: "productDefinition.materials.logDetail"
        }
    }]
}